home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 145 / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin / tools / sharp / xc2102.lzh / INCLUDE / FLOAT.H < prev    next >
Text File  |  1992-03-03  |  2KB  |  56 lines

  1. /*
  2.  * float.h X68k XC Compiler v2.10 Copyright 1990,91,92 SHARP/Hudson
  3.  */
  4. #ifndef    __FLOAT_H
  5. #define    __FLOAT_H
  6.  
  7. #define    FLT_RADIX    2    /* radix of exponent            */
  8. #define    FLT_ROUNDS    -1    /* addition rounds indeterminable    */
  9. #define    FLT_MANT_DIG    24    /* base 2 digits in float mantissa    */
  10. #define    DBL_MANT_DIG    53    /* base 2 digits in double mantissa    */
  11. #define    LDBL_MANT_DIG    53    /* base 2 digits in long double mantissa*/
  12. #define    FLT_EPSILON    1.1920928955079E-7
  13.                 /* minimum number x such that 1.0+x!=1.0*/
  14. #define    DBL_EPSILON    2.2204460492504E-16
  15.                 /* minimum number x such that 1.0+x!=1.0*/
  16. #define    LDBL_EPSILON    2.2204460492504E-16
  17.                 /* minimum number x such that 1.0+x!=1.0*/
  18. #define    FLT_DIG        6    /* maximum decimal digits for float    */
  19. #define    DBL_DIG        14    /* maximum decimal digits for double    */
  20. #define    LDBL_DIG    14    /* maximum decimal digits for long double*/
  21. #define    FLT_MIN_EXP    -126    /* minimun exponent for float        */
  22. #define    DBL_MIN_EXP    -1022    /* minimum exponent for double        */
  23. #define    LDBL_MIN_EXP    -1022    /* minimum exponent for long double    */
  24. #define    FLT_MIN        1.1754943508223E-38
  25.                 /* minimum normal number for float    */
  26. #define    DBL_MIN        2.2250738585072E-308
  27.                 /* minimum normal number for double    */
  28. #define    LDBL_MIN    2.2250738585072E-308
  29.                 /* minimum normal number for long double*/
  30. #define    FLT_MIN_10_EXP    -38    /* minimum decimal exponent for float    */
  31. #define    DBL_MIN_10_EXP    -308    /* minimum decimal exponent for double    */
  32. #define    LDBL_MIN_10_EXP    -308    /* minimum decimal exponent for long double*/
  33. #define    FLT_MAX_EXP    +128    /* maximum exponent for float        */
  34. #define    DBL_MAX_EXP    +1024    /* maximum exponent for double        */
  35. #define    LDBL_MAX_EXP    +1024    /* maximum exponent for long double    */
  36. #define    FLT_MAX        3.4028236692094E+38
  37.                 /* maximum normal number for float    */
  38. #define    DBL_MAX        1.7976931348624E+308
  39.                 /* maximum normal number for double    */
  40. #define    LDBL_MAX    1.7976931348624E+308
  41.                 /* maximum normal number for long double*/
  42. #define    FLT_MAX_10_EXP    +38    /* maximum decimal exponent for float    */
  43. #define    DBL_MAX_10_EXP    +308    /* maximum decimal exponent for double    */
  44. #define    LDBL_MAX_10_EXP    +308    /* maximum decimal exponent for long double*/
  45.  
  46. #ifndef    HUGE_VAL
  47. #define    HUGE_VAL    3.5953862697247E+308    /* huge double value    */
  48. /*            1.1125369292536E-308                */
  49. #endif
  50.  
  51. #ifndef    NULL
  52. #define    NULL    0
  53. #endif
  54.  
  55. #endif
  56.